using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace Daniel.Core.Models.Mapping
{
    public class SearchTermMap : EntityTypeConfiguration<SearchTerm>
    {
        public SearchTermMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            // Table & Column Mappings
            this.ToTable("SearchTerm");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.Keyword).HasColumnName("Keyword");
            this.Property(t => t.StoreId).HasColumnName("StoreId");
            this.Property(t => t.Count).HasColumnName("Count");
        }
    }
}
